<?php TPL::output('global/header.tpl.htm'); ?>

<div class="i_bd mainElem i_clear i_allbg">
	<div class="i_left L_sidebar"> 
		<div class="b_restrain">
			<h3 class="latest_trendst_h3  q_content_h3">邀请好友加入社区</h3>
			<form id="invitation_form" method="post" action="invitation/ajax/invite/" onsubmit="return false">
			<div class="x_invite i_tr">
				<input type="text" class="i_glotxtClass x_txtinput" value="请输入好友邮箱..." name="email" onFocus="$.focus(this,'请输入好友邮箱...');"/>
				<p class="x_pad">你还有 <span class="i_blue"><?php echo $this->user_info['invitation_available']; ?></span> 个邀请名额 &nbsp;&nbsp;<a href="javascript:;" onclick="ajax_post($('#invitation_form'));" class="i_green_but">发送邀请</a></p>
			</div>
			</form>
			
			<h3 class="latest_trendst_h3 b_x5">已邀请好友</h3>
			<ul class="pri_letter" id="c_list"></ul>
			
			<p id="bp_more"><a class="i_ajax_more" href="javascript:;">更多...</a></p>
		</div>
	</div>

	<div class="R_sidebar">
		<?php TPL::output('block/sidebar_menu.tpl.htm'); ?>	
	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	bp_more_load(G_BASE_URL + '/invitation/ajax/invitation_list/', $('#bp_more'),  $('#c_list'));
});
</script>

<?php TPL::output('global/footer.tpl.htm'); ?>